package cn.wolfcode.wolf2w.controller;


import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.query.StrategyCommentQueryObject;
import cn.wolfcode.wolf2w.service.IStrategyCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("customerReport")
public class CustomerReportController {

    @Autowired
    private IStrategyCommentService strategyCommentService;


    @RequestMapping("/list")
    public String list(Model model, @ModelAttribute("qo") StrategyCommentQueryObject qo) {
        Page<StrategyComment> page = strategyCommentService.query(qo);
        model.addAttribute("page", page);

        return "strategyCommend/list";
    }



}
